home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / amiga / hdf / hdf.lha / DFAN.H < prev    next >
Encoding:
C/C++ Source or Header  |  1980-02-06  |  2.5 KB  |  76 lines

  1. /*****************************************************************************
  2. *              NCSA HDF version 3.10r2
  3. *                Sept 20, 1990
  4. *
  5. * NCSA HDF Version 3.10r2 source code and documentation are in the public
  6. * domain.  Specifically, we give to the public domain all rights for future
  7. * licensing of the source code, all resale rights, and all publishing rights.
  8. * We ask, but do not require, that the following message be included in all
  9. * derived works:
  10. * Portions developed at the National Center for Supercomputing Applications at
  11. * the University of Illinois at Urbana-Champaign.
  12. * THE UNIVERSITY OF ILLINOIS GIVES NO WARRANTY, EXPRESSED OR IMPLIED, FOR THE
  13. * SOFTWARE AND/OR DOCUMENTATION PROVIDED, INCLUDING, WITHOUT LIMITATION,
  14. * WARRANTY OF MERCHANTABILITY AND WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE
  15. *****************************************************************************/
  16.  
  17. /*
  18. $Header: /pita/work/HDF/dev/RCS/src/dfan.h,v 3.0 90/02/02 20:30:34 clow beta $
  19.  
  20. $Log:    dfan.h,v $
  21.  * Revision 3.0  90/02/02  20:30:34  clow
  22.  * *** empty log message ***
  23.  * 
  24. */
  25. /*------------------------------------------------------------------------------
  26.  * File:    dfan.h
  27.  * Purpose: header file for the Annotations set
  28.  * Invokes: df.h
  29.  * Contents: 
  30.  *  Structure definitions: DFANdirentry, DFANdirhead
  31.  *  Constant definitions: DFAN_LABEL, DFAN_DESC
  32.  * Remarks: none
  33.  *----------------------------------------------------------------------------*/
  34.  
  35.  
  36. #ifndef DFAN                        /* avoid re-inclusion */
  37. #define DFAN
  38.  
  39. #include "df.h"
  40.  
  41. #define DFAN_LABEL  0
  42. #define DFAN_DESC   1
  43.  
  44. #define DFAN_DEFENTRIES 16          /* no of dir entries to add at a time */
  45.  
  46.     /* This structure stores an entry in the label/desc directory */
  47.     /* for a label/desc in the file, it gives the ref of the label/desc,
  48.         and the tag/ref of the data item to which the label/desc relates */
  49.  
  50. typedef struct {
  51.         uint16 annref;                  /* ref of annotation */
  52.         uint16 datatag, dataref;        /* tag/ref of data */
  53.     } DFANdirentry;
  54.  
  55.     /* This structure is a head node for the directory, which is organized as
  56.         as a linked list of arrays.  DFANdirentry is the structure of an
  57.         array element, while DFANdirhead is the list element */
  58. typedef struct DFANdirhead {
  59.         int nentries;
  60.         struct DFANdirhead *next;
  61.         DFANdirentry entries[1];        /* actually an arbitrary size array */
  62.     } DFANdirhead;
  63.  
  64. #ifndef VMS
  65. int32 DFANIgetannlen();
  66. #else
  67. int32 _DFANIgetannlen();
  68. #endif
  69.  
  70. #endif /*DFAN*/
  71.